<?php
return array(
    /*'SHOW_PAGE_TRACE' => true,*/
    'DEFAULT_LANG' => 'en-us',

    /* 域名配置 */
    'HTTP_SERVER' => 'http://www.tp.me',
    'COOKIE_DOMAIN' => '.tp.me',
    'MODULE_ALLOW_LIST' => array('Home', 'Admin', 'Api'),

    /* 数据库配置 */
    'DB_TYPE' => 'mysql',
    'DB_HOST' => '127.0.0.1',
    'DB_NAME'   => 'tp.me',
    'DB_USER' => 'root',
    'DB_PWD' => '',
    'DB_PREFIX' => '',
    'DB_CHARSET' => 'utf8',
    'DB_DEBUG'  =>  TRUE,

    /* 文件缓存配置 */
    'DATA_CACHE_SUBDIR' => true,
    'DATA_PATH_LEVEL' => 3,

    /* 模板引擎设置 */
    'TMPL_TEMPLATE_SUFFIX' => '.php',

    /* URL设置 */
    'URL_MODEL' => 2,
    'URL_HTML_SUFFIX' => '',

    /* token */
    /*'TOKEN_ON' => true,
    'TOKEN_NAME' => '__hash__',
    'TOKEN_TYPE' => 'md5',
    'TOKEN_RESET' => true,*/

    /* 路由 */
    /*'URL_ROUTER_ON' => true,
    'URL_ROUTE_RULES' => array(
        '/(.*)-c-(\d+)v(.*)-(\d+)$/' => 'goods/category?cid=:2&attrs=:3&p=:4',
        '/(.*)-c-(\d+)v(.*)$/' => 'goods/category?cid=:2&attrs=:3',
        '/(.*)-c-(\d+)-(\d+)$/' => 'goods/category?cid=:2&p=:3',
        '/(.*)-c-(\d+)$/' => 'goods/category?cid=:2',
        '/(.*)-p-(\d+)$/' => 'goods/info?id=:2',
        '/(.*)-i-(\d+)$/' => 'clause/info?id=:2',
        '/daily\/(\d{4})-(\d{2})-(\d{2})\/p(\d+)$/' => 'daily/today?year=:1&month=:2&day=:3&p=:4',
        '/daily\/(\d{4})-(\d{2})-(\d{2})$/' => 'daily/today?year=:1&month=:2&day=:3',
        '/new-in$/' => 'daily/index',
        '/tag\/(.*)-t-(\d+)$/' => 'tags/tag?id=:2',
        '/^search$/' => 'seek/index',
        '/search\/(.*)\/p(\d+)$/' => 'seek/result?q=:1&p=:2',
        '/search\/(.*)$/' => 'seek/result?q=:1',
        'looks-list$'=>'album/index',
        '/(.*)-photo-(\d+)$/' => 'album/photo?id=:2',
        '/discount\/p(\d+)$/' => 'discount/index?p=:1',
    ),*/
);